home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 11 / AMUG BBS in a Box Volume XI (April 1994) (MacWizards).iso / Files / Prog / B-C / C++Source Code Fmtr.sit / Tests / ChangesCode.cp next >
MacBinary  |  1991-01-15  |  1.9 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: ChangesCode.cp

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert MS-DOS Code Page Info (other/dosCodePage) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Tue Jan 15 11:21:57 1991, modified Tue Jan 15 11:21:57 1991, creator 'MPS ', type ASCII, 1192 bytes "ChangesCode.cp" , at 0x528 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 43 68 61 6e 67 65 | 73 43 6f 64 65 2e 63 70 |..Change|sCode.cp|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 04 a8 00 | 00 01 ac a3 b8 dc a5 a3 |........|........|
|00000060| b8 dc a5 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f1 3b 00 00 |........|.....;..|
|00000080| 23 69 66 20 71 44 65 62 | 75 67 0d 70 61 73 63 61 |#if qDeb|ug.pasca|
|00000090| 6c 20 76 6f 69 64 20 41 | 73 73 65 72 74 69 6f 6e |l void A|ssertion|
|000000a0| 28 63 6f 6e 73 74 20 42 | 6f 6f 6c 65 61 6e 20 63 |(const B|oolean c|
|000000b0| 6f 6e 64 69 74 69 6f 6e | 2c 20 63 6f 6e 73 74 20 |ondition|, const |
|000000c0| 53 74 72 32 35 35 20 26 | 64 65 73 63 72 69 70 74 |Str255 &|descript|
|000000d0| 69 6f 6e 29 0d 23 65 6c | 73 65 0d 70 61 73 63 61 |ion).#el|se.pasca|
|000000e0| 6c 20 76 6f 69 64 20 41 | 73 73 65 72 74 69 6f 6e |l void A|ssertion|
|000000f0| 28 63 6f 6e 73 74 20 42 | 6f 6f 6c 65 61 6e 20 63 |(const B|oolean c|
|00000100| 6f 6e 64 69 74 69 6f 6e | 2c 20 63 6f 6e 73 74 20 |ondition|, const |
|00000110| 53 74 72 32 35 35 20 26 | 29 0d 23 65 6e 64 69 66 |Str255 &|).#endif|
|00000120| 0d 0d 7b 0d 09 69 66 20 | 28 21 63 6f 6e 64 69 74 |..{..if |(!condit|
|00000130| 69 6f 6e 29 20 7b 0d 23 | 69 66 20 71 44 65 62 75 |ion) {.#|if qDebu|
|00000140| 67 0d 09 09 47 65 74 43 | 61 6c 6c 65 72 73 4d 65 |g...GetC|allersMe|
|00000150| 74 68 6f 64 4e 61 6d 65 | 28 70 57 68 6f 29 3b 0d |thodName|(pWho);.|
|00000160| 09 09 69 66 20 28 43 61 | 6e 52 65 61 64 4c 6e 28 |..if (Ca|nReadLn(|
|00000170| 29 29 20 7b 0d 09 09 09 | 63 6f 75 74 20 3c 3c 20 |)) {....|cout << |
|00000180| 22 41 73 73 65 72 74 69 | 6f 6e 20 66 61 69 6c 65 |"Asserti|on faile|
|00000190| 64 20 69 6e 20 22 20 3c | 3c 20 70 57 68 6f 20 3c |d in " <|< pWho <|
|000001a0| 3c 20 22 3a 20 22 20 3c | 3c 20 64 65 73 63 72 69 |< ": " <|< descri|
|000001b0| 70 74 69 6f 6e 20 3c 3c | 20 22 5c 6e 22 3b 0d 09 |ption <<| "\n";..|
|000001c0| 09 09 45 6e 74 65 72 4d | 61 63 41 70 70 44 65 62 |..EnterM|acAppDeb|
|000001d0| 75 67 67 65 72 28 29 3b | 0d 09 09 09 69 66 20 28 |ugger();|....if (|
|000001e0| 52 65 61 64 59 65 73 4e | 6f 28 22 44 6f 20 79 6f |ReadYesN|o("Do yo|
|000001f0| 75 20 77 61 6e 74 20 74 | 6f 20 73 69 67 6e 61 6c |u want t|o signal|
|00000200| 20 66 61 69 6c 75 72 65 | 3f 22 29 29 0d 09 09 09 | failure|?"))....|
|00000210| 09 46 61 69 6c 75 72 65 | 28 6d 69 6e 45 72 72 2c |.Failure|(minErr,|
|00000220| 20 30 29 3b 09 09 09 09 | 2f 2a 20 3f 3f 3f 20 73 | 0);....|/* ??? s|
|00000230| 69 6c 65 6e 74 20 66 61 | 69 6c 75 72 65 2c 20 62 |ilent fa|ilure, b|
|00000240| 75 74 20 73 6f 6d 65 64 | 61 79 20 30 20 6d 65 73 |ut somed|ay 0 mes|
|00000250| 73 61 67 65 73 0d 09 09 | 09 09 09 09 09 09 09 09 |sages...|........|
|00000260| 09 09 20 20 6e 65 65 64 | 20 74 6f 20 62 65 20 6e |.. need| to be n|
|00000270| 6f 6e 2d 73 69 6c 65 6e | 74 20 2a 2f 0d 09 09 7d |on-silen|t */...}|
|00000280| 20 65 6c 73 65 20 7b 0d | 09 09 09 44 65 62 75 67 | else {.|...Debug|
|00000290| 53 74 72 28 22 41 73 73 | 65 72 74 69 6f 6e 20 66 |Str("Ass|ertion f|
|000002a0| 61 69 6c 65 64 20 69 6e | 20 22 20 2b 20 70 57 68 |ailed in| " + pWh|
|000002b0| 6f 20 2b 20 22 3a 20 22 | 20 2b 20 64 65 73 63 72 |o + ": "| + descr|
|000002c0| 69 70 74 69 6f 6e 29 3b | 0d 09 09 09 46 61 69 6c |iption);|....Fail|
|000002d0| 75 72 65 28 6d 69 6e 45 | 72 72 2c 20 30 29 3b 09 |ure(minE|rr, 0);.|
|000002e0| 09 09 09 09 2f 2a 20 3f | 3f 3f 20 73 69 6c 65 6e |..../* ?|?? silen|
|000002f0| 74 20 66 61 69 6c 75 72 | 65 2c 20 62 75 74 20 73 |t failur|e, but s|
|00000300| 6f 6d 65 64 61 79 20 30 | 20 6d 65 73 73 61 67 65 |omeday 0| message|
|00000310| 73 0d 09 09 09 09 09 09 | 09 09 09 09 09 09 20 20 |s.......|...... |
|00000320| 6e 65 65 64 20 74 6f 20 | 62 65 20 6e 6f 6e 2d 73 |need to |be non-s|
|00000330| 69 6c 65 6e 74 20 2a 2f | 0d 09 09 7d 0d 23 65 6c |ilent */|...}.#el|
|00000340| 73 65 0d 09 09 46 61 69 | 6c 75 72 65 28 6d 69 6e |se...Fai|lure(min|
|00000350| 45 72 72 2c 20 30 29 3b | 09 09 09 09 09 09 2f 2a |Err, 0);|....../*|
|00000360| 20 3f 3f 3f 20 73 69 6c | 65 6e 74 20 66 61 69 6c | ??? sil|ent fail|
|00000370| 75 72 65 2c 20 62 75 74 | 20 73 6f 6d 65 64 61 79 |ure, but| someday|
|00000380| 20 30 20 6d 65 73 73 61 | 67 65 73 0d 09 09 09 09 | 0 messa|ges.....|
|00000390| 09 09 09 09 09 09 09 09 | 20 20 6e 65 65 64 20 74 |........| need t|
|000003a0| 6f 20 62 65 20 6e 6f 6e | 2d 73 69 6c 65 6e 74 20 |o be non|-silent |
|000003b0| 2a 2f 0d 23 65 6e 64 69 | 66 0d 0d 09 7d 0d 7d 0d |*/.#endi|f...}.}.|
|000003c0| 0d 0d 70 61 73 63 61 6c | 20 76 6f 69 64 20 46 61 |..pascal| void Fa|
|000003d0| 69 6c 4f 53 45 72 72 28 | 73 68 6f 72 74 20 65 72 |ilOSErr(|short er|
|000003e0| 72 6f 72 29 0d 7b 0d 23 | 69 66 20 71 44 65 62 75 |ror).{.#|if qDebu|
|000003f0| 67 0d 09 69 66 20 28 67 | 41 73 6b 46 61 69 6c 75 |g..if (g|AskFailu|
|00000400| 72 65 20 26 26 20 28 65 | 72 72 6f 72 20 3d 3d 20 |re && (e|rror == |
|00000410| 6e 6f 45 72 72 29 20 26 | 26 20 43 61 6e 52 65 61 |noErr) &|& CanRea|
|00000420| 64 4c 6e 28 29 29 20 7b | 0d 09 09 73 68 6f 72 74 |dLn()) {|...short|
|00000430| 20 64 65 62 75 67 45 72 | 72 6f 72 3b 0d 0d 09 09 | debugEr|ror;....|
|00000440| 47 65 74 43 61 6c 6c 65 | 72 73 4d 65 74 68 6f 64 |GetCalle|rsMethod|
|00000450| 4e 61 6d 65 28 70 57 68 | 6f 29 3b 0d 09 09 64 65 |Name(pWh|o);...de|
|00000460| 62 75 67 45 72 72 6f 72 | 20 3d 20 52 65 61 64 49 |bugError| = ReadI|
|00000470| 6e 74 65 67 65 72 28 22 | 46 61 69 6c 4f 53 45 72 |nteger("|FailOSEr|
|00000480| 72 20 63 61 6c 6c 65 64 | 20 62 79 20 22 20 2b 20 |r called| by " + |
|00000490| 70 57 68 6f 20 2b 20 22 | 2e 20 20 45 6e 74 65 72 |pWho + "|. Enter|
|000004a0| 20 72 65 74 75 72 6e 20 | 65 72 72 6f 72 3a 20 22 | return |error: "|
|000004b0| 29 3b 0d 09 09 69 66 20 | 28 64 65 62 75 67 45 72 |);...if |(debugEr|
|000004c0| 72 6f 72 20 21 3d 20 6e | 6f 45 72 72 29 0d 09 09 |ror != n|oErr)...|
|000004d0| 09 46 61 69 6c 75 72 65 | 28 64 65 62 75 67 45 72 |.Failure|(debugEr|
|000004e0| 72 6f 72 2c 20 30 29 3b | 0d 09 7d 0d 23 65 6c 73 |ror, 0);|..}.#els|
|000004f0| 65 0d 09 69 66 20 28 65 | 72 72 6f 72 20 21 3d 20 |e..if (e|rror != |
|00000500| 6e 6f 45 72 72 29 0d 09 | 09 46 61 69 6c 75 72 65 |noErr)..|.Failure|
|00000510| 28 65 72 72 6f 72 2c 20 | 30 29 3b 0d 23 65 6e 64 |(error, |0);.#end|
|00000520| 69 66 0d 7d 0d 0d 0d 0d | 00 00 00 00 00 00 00 00 |if.}....|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000590| 00 00 74 ca 11 55 49 6e | 73 70 65 63 74 6f 72 2e |..t..UIn|spector.|
|000005a0| 69 6e 63 31 2e 70 02 00 | 00 00 54 45 58 54 4d 50 |inc1.p..|..TEXTMP|
|000005b0| 0e 43 68 61 6e 67 65 73 | 43 6f 64 65 2e 63 70 43 |.Changes|Code.cpC|
|000005c0| 02 00 00 00 50 61 72 74 | 53 49 54 78 00 00 00 00 |....Part|SITx....|
|000005d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 a9 80 16 a5 00 00 | 00 00 00 00 01 ac 00 01 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 0e 00 00 00 |........|........|
|00000610| 74 ca 08 55 4c 69 73 74 | 2e 63 70 2d 02 00 00 00 |t..UList|.cp-....|
|00000620| 54 45 58 54 4d 50 53 20 | 01 00 ff ff ff ff 00 00 |TEXTMPS |........|
|00000630| 00 00 8c bc 00 00 00 01 | 11 de 00 01 14 00 00 00 |........|........|
|00000640| 00 00 02 34 00 00 06 00 | a3 97 93 eb a3 b0 eb 13 |...4....|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 79 31 | 00 2e 00 00 00 00 00 00 |......y1|........|
|00000670| 00 00 79 61 00 01 00 00 | 00 00 00 00 00 00 00 00 |..ya....|........|
|00000680| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 28 69 6e |...H..Mo|naco.(in|
|00000690| 74 20 78 2c 20 69 6e 74 | 20 79 29 0d 7b 0d 09 69 |t x, int| y).{..i|
|000006a0| 66 20 28 78 20 3e 00 06 | 00 04 00 27 00 02 01 76 |f (x >..|...'...v|
|000006b0| 01 fe 00 27 00 02 01 76 | 01 fe a3 b8 96 55 00 00 |...'...v|.....U..|
|000006c0| 03 42 00 00 04 a8 00 00 | 03 40 01 00 00 00 00 1e |.B......|.@......|
|000006d0| 00 27 00 02 01 76 01 fe | 00 27 00 02 01 76 01 fe |.'...v..|.'...v..|
|000006e0| 00 00 03 40 00 00 00 00 | 00 00 00 00 00 00 00 00 |...@....|........|
|000006f0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 2f |.....n..|.n...>./|
|00000700| ec c0 07 b8 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |........|.>..MPSR|
|00000710| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 03 f0 ff ff 00 00 00 4c | 00 31 d5 cc 00 00 00 00 |.......L|.1......|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+